package com.wanli.graalvmdemo.service;

import com.wanli.graalvmdemo.dao.MultiAgentServiceLogRepository;
import com.wanli.graalvmdemo.entity.MultiAgentServiceLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

@Service
public class MultiAgentServiceLogService {
    @Autowired
    private MultiAgentServiceLogRepository multiAgentServiceLogRepository;

    public Flux<MultiAgentServiceLog> findByRequestId(String requestId) {
        return multiAgentServiceLogRepository.findByRequestId(requestId);
    }
}
